package com.example.orderservice.pojo.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 鱼凫
 * @version 1.0
 * Create by 2023/4/12 14:00
 */
@Data
@TableName(value ="order_comment")
public class OrderCommentPO implements Serializable {

    @TableId("id")
    private String id;

    @TableField("hotel_id")
    private String hotelId;

    @TableField("content")
    private String content;

    @TableField("attachment")
    private String attachment;

    @TableField("likes")
    private Integer likes;

    @TableField("sort")
    private Integer sort;

    @TableField("score")
    private Double score;

    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;

    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private String createBy;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_by", fill = FieldFill.UPDATE)
    private String updateBy;

    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
